package com.wyh.domain.dto.gfive;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class RoleUpdateDTO {
    /**
     *
     */
    @NotNull(message="[]不能为空")
    @ApiModelProperty(value = "角色ID",example = "1")
    private Integer roleId;
    /**
     * 名称
     */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty(value = "名称", example = "管理员1")
    @Length(max= 255,message="编码长度不能超过255")
    private String roleName;

    /**
     *
     */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("权限id")
    private List<Integer> PermissionIds;
}
